package cn.lbd.api.designMode.prototype;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Video implements Cloneable{
    String name;
    Date Time;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        Object clone = super.clone();
        Video v=(Video)clone;
        //深克隆
        v.Time= (Date) this.Time.clone();
        return clone;
    }
}
